package Vistas;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VentanaAgregarJueces extends javax.swing.JFrame {
	private JPanel jPanel1;
	private JTextField txtNombre;
	private JButton btnBuscar;
	private JButton btnRegistrar;
	private JTextField txtFechaNacimiento;
	private JLabel lblFechaNacimiento;
	private JTextField txtApellido;
	private JLabel lblApellido;
	private JTextField txtCedula;
	private JLabel jLabel1;
	private JLabel lblCedula;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				VentanaAgregarJueces inst = new VentanaAgregarJueces();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public VentanaAgregarJueces() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				jPanel1 = new JPanel();
				getContentPane().add(jPanel1, "Center");
				jPanel1.setBounds(0, 0, 339, 257);
				jPanel1.setLayout(null);
				{
					lblCedula = new JLabel();
					jPanel1.add(lblCedula);
					lblCedula.setBounds(62, 52, 38, 23);
					lblCedula.setText("Cedula:");
				}
				{
					jLabel1 = new JLabel();
					jPanel1.add(jLabel1);
					jLabel1.setText("Nombre:");
					jLabel1.setBounds(57, 93, 43, 14);
				}
				{
					txtCedula = new JTextField();
					jPanel1.add(txtCedula);
					txtCedula.setBounds(112, 53, 71, 21);
				}
				{
					txtNombre = new JTextField();
					jPanel1.add(txtNombre);
					txtNombre.setBounds(112, 90, 71, 21);
				}
				{
					lblApellido = new JLabel();
					jPanel1.add(lblApellido);
					lblApellido.setText("Apellido:");
					lblApellido.setBounds(58, 131, 43, 14);
				}
				{
					txtApellido = new JTextField();
					jPanel1.add(txtApellido);
					txtApellido.setBounds(112, 128, 71, 21);
				}
				{
					lblFechaNacimiento = new JLabel();
					jPanel1.add(lblFechaNacimiento);
					lblFechaNacimiento.setText("Fecha de Nacimiento:");
					lblFechaNacimiento.setBounds(17, 168, 103, 14);
				}
				{
					txtFechaNacimiento = new JTextField();
					jPanel1.add(txtFechaNacimiento);
					txtFechaNacimiento.setBounds(124, 165, 59, 21);
				}
				{
					btnRegistrar = new JButton();
					jPanel1.add(btnRegistrar);
					btnRegistrar.setText("Registrar");
					btnRegistrar.setBounds(240, 165, 58, 21);
				}
				{
					btnBuscar = new JButton();
					jPanel1.add(btnBuscar);
					btnBuscar.setText("Buscar");
					btnBuscar.setBounds(243, 53, 46, 21);
				}
			}
			pack();
			this.setSize(347, 291);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	public void agregarListener(ActionListener accion){
		btnRegistrar.addActionListener(accion);
	}

	public String getCedula(){
		return txtCedula.getText();
	}
	public String getFecha(){
		return txtFechaNacimiento.getText();
	}
	public String getNombre(){
		return txtNombre.getText();
	}
	public String getApellido(){
		return txtApellido.getText();
	}
	}
		
